<template>
  <div class="li-show">
    <span>{{mType}}</span>
    <span :style="styleObj">{{allBalance}}</span>
  </div>
</template>

<script>
export default {
  name: 'li-show',
  data(){
    return {
      styleObj:{color: this.mType==='金额' ? '#333' : '#5e93c6'}
    }
  },
  props: {
    allBalance: {
      type: String,
      default:'0.00',
    },
    mType: {
      type: String,
      default:'金额',
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
body{
  padding:0 0;
  margin: 0 0;

}
.li-show{
  background-color: white;
  height: 46px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px #e3e3e4 solid;
  padding: 0 16px 0 16px;
  white-space: nowrap;
  overflow: hidden;
}

.span{
  font-size: 14px;
  color: #333;
}
</style>
